#pragma once
#include "Actor.h"
#include "Camera.h"

namespace mini
{
	class CPixelBlurEffect : public CEffect
	{
	public:
		CPixelBlurEffect();
		virtual ~CPixelBlurEffect();
		virtual void update(float fDeltaTime) override;
		virtual void commitToGpu(DeviceContext* pContext) override;
		virtual void addUnit(CUnit* pUnit, EntityType Type, INT32 zLayer)override;

	private:
		std::map<UINT32, CMatrix*>	mLastWorldMT;
		CMatrix matrixArray[3];
		std::vector<CTexture*>	mTextureArray;
		std::vector<ID3D11RenderTargetView*> mpRenderTargetViewArray;
		CMeshUnit* mpMeshUnit = nullptr;
	};
}